]> dgit.raspbian.org Git - gnome-shell.git/commit
st/viewport: Include padding in paint volume origin calculation
authorSebastian Keller <skeller@gnome.org>
Sat, 21 Mar 2026 22:38:16 +0000 (23:38 +0100)
committerSebastian Keller <skeller@gnome.org>
Sun, 22 Mar 2026 10:46:01 +0000 (11:46 +0100)
commit0526cc98ec8f0c4793ca3f0beb2ffcc388f2f7f7
tree026e816ec4a36fb197a734ba3721abe9503283e6
parentb8dbf86a472a79579d28e48360184323ba66ca7a
st/viewport: Include padding in paint volume origin calculation

In the presence of adjustments, the paint volume had its size adjusted
for the padding of the viewport, but not its origin. This was leading to
scrollable viewports with a padding having their paint volumes shifted
too far to the left causing some artifacts on the right when scrolling.

One place where this could be observed was the window list in looking
glass.

This now correctly adjusts the origin, simplifies the code and moves it
into the only condition where the adjustment is needed.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4146>
src/st/st-viewport.c